import Layoue from '@/views/layoue.vue'
import Index from '@/views/secondes/index.vue'
import Tabulation from '@/views/secondes/tabulation.vue'
import Consult from '@/views/secondes/consult.vue'
import My from '@/views/secondes/my.vue'

import Jump from '@/views/jump.vue'
import Login from '@/views/login.vue'
import Register from '@/views/register.vue'
import Gohire from '@/views/gohire.vue'
import TabulationList from '@/views/tabulationlist.vue'
import Collect from '@/views/collect.vue'
import Gorent from '@/views/gorent .vue'
import Maphouse from '@/views/maphouse.vue'
const routes = [
  {
    path: '/',
    component: Layoue,
    redirect: '/index',
    children: [
      {
        path: 'index',
        component: Index
      },
      {
        name: 'tabulation',
        path: 'tabulation',
        component: Tabulation
      },
      {
        path: 'consult',
        component: Consult
      },
      {
        path: 'my',
        component: My
      }
    ]
  },
  {
    name: 'jump',
    path: '/jump',
    component: Jump
  },
  {
    name: 'login',
    path: '/login',
    component: Login
  },
  {
    name: 'register',
    path: '/register',
    component: Register
  },
  {
    name: 'gohire',
    path: '/gohire',
    component: Gohire
  },
  {
    name: 'tabulationlist',
    path: '/tabulationlist',
    component: TabulationList
  },
  {
    name: 'collect',
    path: '/collect',
    component: Collect
  },
  {
    name: 'gorent',
    path: '/gorent',
    component: Gorent
  },
  {
    name: 'maphouse',
    path: '/maphouse',
    component: Maphouse
  }
]

export default routes
